home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Plug-In Power Pack for Netscape Communicator
/
Plug-In Power Pack for Netscape Communicator.iso
/
plugins
/
dataviews
/
dvtools
/
demos
/
dwpdemo
/
dwp_data.c
next >
Wrap
C/C++ Source or Header
|
1997-05-08
|
2KB
|
58 lines
#ifndef lint
static char SccsId[]= "@(#)dwp_data.c V1.6 3/15/95";
#endif
/*-----------------------------------------------------------------------------------
| file name -- dwp_data.c
|-----------------------------------------------------------------------------------*/
#include "std.h"
#include "dvstd.h"
#include "dvtools.h"
#include "dwp_vars.h"
#include "dwp_data.h"
#include "dwp_fundecl.h"
/* Declaration globalvariables for REBIND DATA variables */
FLOAT setpoint;
FLOAT highvalue;
FLOAT lowvalue;
FLOAT lolo;
FLOAT hihi;
FLOAT alarm_status = 0;
FLOAT valvenumber;
FLOAT v1rotate;
FLOAT v2rotate;
FLOAT v3rotate;
FLOAT v4rotate;
FLOAT toggle_overlay = 0;
/* DECLARATION of varname:data_info table
| Each time you add a variable to the view that you want
| to rebind to application data, you should add it to
| this table.
|
| If you add an entry to DataTable, make sure you increment
| MAX_APP_VARS (defined in app_vars.h) accordingly.
*/
DATA_INFO DataInfo[MAX_APP_VARS] =
{
"Setpoint", (ADDRESS) & setpoint,
"HighValue", (ADDRESS) & highvalue,
"LowValue", (ADDRESS) & lowvalue,
"Valve Number", (ADDRESS) & valvenumber,
"Hi Hi", (ADDRESS) & hihi,
"Lo Lo", (ADDRESS) & lolo,
"v1rotate", (ADDRESS) & v1rotate,
"v2rotate", (ADDRESS) & v2rotate,
"v3rotate", (ADDRESS) & v3rotate,
"v4rotate", (ADDRESS) & v4rotate,
"alarm", (ADDRESS) & alarm_status,
"toggle_overlay", (ADDRESS) & toggle_overlay,
};